package com.itheima.ydd.dto;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.Data;

import java.util.List;

/**
 * 自定义分页对象
 */
@Data
public class PageInfo<T> {
    private static final long serialVersionUID = 8544996863226528798L;
    //总记录数,需要查询表中总记录数封装进入
    private Integer count;
    //总页数
    private Integer totalPages;
    //每页数量
    private Integer pageSize;
    //当前页码
    private Integer currentPage;
    //查询出来的数据
    private List<T> data;


}
